﻿<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>12.13日疫情大数据分析</title>
    <link href="css/bootstrap.css" rel="stylesheet">
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/data_text.css">
    <link rel="stylesheet" href="css/foundation-datepicker.css">

    <!--[if lt IE 9]>
    <script src="js/html5shiv.min.js"></script>
    <script src="js/respond.min.js"></script>
    <![endif]-->
</head>
<body>

<!--header开始-->
<div class="header">
    <div class="header_logo fl">
        <font size="18px" color="white" style="font-style: italic;" >12月13日疫情大数据分析平台</font>>
    </div>
</div>
<!--header结束-->

<!--content开始-->
<div class="data_content">
    <div class="data_info">
        <div class="info_1 fl">
            <div class="text_1">
                <div class="fl">
                    <div class="fl">
                        <p>累计确诊</p>
                        <p th:text="${allDiagnosed}">15802</p>
                    </div>
                </div>
                <div class="fl">
                    <div class="fl">
                        <p>累计治愈</p>
                        <p th:text="${allSecure}">15802</p>
                    </div>
                </div>
                <div class="fl">
                    <div class="fl">
                        <p>累计死亡</p>
                        <p th:text="${allDead}">15802</p>
                    </div>
                </div>
            </div>

        </div>
        <div class="info_2 fl">
            <div class="text_2">
                <div class="fl">

                    <div class="fl">
                        <p>新增确诊</p>
                        <p th:text="${newDiagnosed}">11</p>
                    </div>
                </div>
                <div class="fl">

                    <div class="fl">
                        <p>新增治愈</p>
                        <p th:text="${newSecure}">1502</p>
                    </div>
                </div>
            </div>

        </div>
        <div class="info_3 fr">
            <div class="text_3">
                <div class="fl">
                    <div class="fl">
                        <p>新增死亡</p>
                        <p th:text="${newDead}">15802</p>
                    </div>
                </div>
                <div class="fl">

                    <div class="fl">
                        <p>新增无症状</p>
                        <p th:text="${newAsymptomatic}">15802</p>
                    </div>
                </div>
            </div>

        </div>
    </div>

    <div class="data_main">
        <div class="main_left fl">
            <div class="left_1">
                <div class="main_title">
                    每日疫情
                </div>
                <div id="chart_1" class="chart" style="width:100%;height: 280px;"></div>
            </div>
            <div class="left_2">
                <div class="main_title">
                    热门省份疫情
                </div>
                <div id="chart_2" class="chart" style="width:100%;height: 280px;"></div>
            </div>
        </div>
        <div class="main_center fl">
            <div class="center_text">
                <div class="main_title">
                    疫情分布地图
                </div>
                <div id="chart_map" style="width:100%;height:610px;"></div>
            </div>
        </div>
        <div class="main_right fr">
            <div class="right_1">
                <div class="main_title">
                    首都24日新增
                </div>
                <div id="chart_3" class="echart" style="width:100%;height: 280px;"></div>
            </div>
            <div class="right_2">
                <div class="main_title">
<!--                    <img src="img/title_5.png" alt="">-->
                    疫情分析
                </div>
                <div id="chart_4" class="echart fl" style="width:80%;height: 230px;"></div>
                <div class="fr chart_text">
                    <p>同比%</p>
                    <p th:if="${newDiagnosed}<${lastDiagnosed}"><img src="img/down.png" alt=""><font th:text="${rateDiagnosed}">2%</font></p>
                    <p th:if="${newDiagnosed}>${lastDiagnosed}"><img src="img/up.png" alt=""><font th:text="${rateDiagnosed}">4%</font></p>

                    <p th:if="${newSecure}<${lastSecure}"><img src="img/down.png" alt=""><font th:text="${rateSecure}">2%</font></p>
                    <p th:if="${newSecure}>${lastSecure}"><img src="img/up.png" alt=""><font th:text="${rateSecure}">4%</font></p>

                    <p th:if="${newDead}<${lastDead}"><img src="img/down.png" alt=""><font th:text="${rateDead}">2%</font></p>
                    <p th:if="${newDead}>${lastDead}"><img src="img/up.png" alt=""><font th:text="${rateDead}">4%</font></p>

                    <p th:if="${newAsymptomatic}<${lastAsymptomatic}"><img src="img/down.png" alt=""><font th:text="${rateAsymptomatic}">2%</font></p>
                    <p th:if="${newAsymptomatic}>${lastAsymptomatic}"><img src="img/up.png" alt=""><font th:text="${rateAsymptomatic}">4%</font></p>
                </div>

            </div>
        </div>
    </div>
    <div class="data_bottom">
        <div class="bottom_1 fl">
            <div class="main_title">
<!--                <img src="img/title_6.png" alt="">-->
                疫情新增前五位
            </div>
            <div class="main_table">
                <table>
                    <thead>
                    <tr>
                        <th>排名</th>
                        <th>省份</th>
                        <th>新增</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>1</td>
                        <td th:text="${nDFirst.prov}">京A12345</td>
                        <td th:text="${nDFirst.confins}">134.2</td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td th:text="${nDSecond.prov}">京A12345</td>
                        <td th:text="${nDSecond.confins}">134.2</td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td th:text="${nDThird.prov}">京A12345</td>
                        <td th:text="${nDThird.confins}">134.2</td>
                    </tr>
                    <tr>
                        <td>4</td>
                        <td th:text="${nDFourth.prov}">京A12345</td>
                        <td th:text="${nDFourth.confins}">134.2</td>
                    </tr>
                    <tr>
                        <td>5</td>
                        <td th:text="${nDFifth.prov}">京A12345</td>
                        <td th:text="${nDFifth.confins}">134.2</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="bottom_center fl">
            <div class="bottom_2 fl">
                <div class="main_title">
<!--                    <img src="img/title_6.png" alt="">-->
                    疫情治愈前五位
                </div>
                <div class="main_table">
                    <table>
                        <thead>
                        <tr>
                            <th>排名</th>
                            <th>省份</th>
                            <th>治愈</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>1</td>
                            <td th:text="${nSFirst.prov}">京A12345</td>
                            <td th:text="${nSFirst.healins}">134.2</td>
                        </tr>
                        <tr>
                            <td>2</td>
                            <td th:text="${nSSecond.prov}">京A12345</td>
                            <td th:text="${nSSecond.healins}">134.2</td>
                        </tr>
                        <tr>
                            <td>3</td>
                            <td th:text="${nSThird.prov}">京A12345</td>
                            <td th:text="${nSThird.healins}">134.2</td>
                        </tr>
                        <tr>
                            <td>4</td>
                            <td th:text="${nSFourth.prov}">京A12345</td>
                            <td th:text="${nSFourth.healins}">134.2</td>
                        </tr>
                        <tr>
                            <td>5</td>
                            <td th:text="${nSFifth.prov}">京A12345</td>
                            <td th:text="${nSFifth.healins}">134.2</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="bottom_3 fl">
                <div class="main_title">
<!--                    <img src="img/title_6.png" alt="">-->
                    疫情死亡前五位
                </div>
                <div class="main_table">
                    <table>
                        <thead>
                        <tr>
                            <th>排名</th>
                            <th>省份</th>
                            <th>死亡</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>1</td>
                            <td th:text="${nDeadFirst.prov}">京A12345</td>
                            <td th:text="${nDeadFirst.deadins}">134.2</td>
                        </tr>
                        <tr>
                            <td>2</td>
                            <td th:text="${nDeadSecond.prov}">京A12345</td>
                            <td th:text="${nDeadSecond.deadins}">134.2</td>
                        </tr>
                        <tr>
                            <td>3</td>
                            <td th:text="${nDeadThird.prov}">京A12345</td>
                            <td th:text="${nDeadThird.deadins}">134.2</td>
                        </tr>
                        <tr>
                            <td>4</td>
                            <td th:text="${nDeadFourth.prov}">京A12345</td>
                            <td th:text="${nDeadFourth.deadins}">134.2</td>
                        </tr>
                        <tr>
                            <td>5</td>
                            <td th:text="${nDeadFifth.prov}">京A12345</td>
                            <td th:text="${nDeadFifth.deadins}">134.2</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="bottom_4 fr">
            <div class="main_title">
<!--                <img src="img/title_5.png" alt="">-->
                疫情无症状前五位
            </div>
            <div class="main_table">
                <table>
                    <thead>
                    <tr>
                        <th>排名</th>
                        <th>省份</th>
                        <th>无症状</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>1</td>
                        <td th:text="${nAFirst.prov}">京A12345</td>
                        <td th:text="${nAFirst.nosymins}">134.2</td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td th:text="${nASecond.prov}">京A12345</td>
                        <td th:text="${nASecond.nosymins}">134.2</td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td th:text="${nAThird.prov}">京A12345</td>
                        <td th:text="${nAThird.nosymins}">134.2</td>
                    </tr>
                    <tr>
                        <td>4</td>
                        <td th:text="${nAFourth.prov}">京A12345</td>
                        <td th:text="${nAFourth.nosymins}">134.2</td>
                    </tr>
                    <tr>
                        <td>5</td>
                        <td th:text="${nAFifth.prov}">京A12345</td>
                        <td th:text="${nAFifth.nosymins}">134.2</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>


</div>
<!--content结束-->


<!--注销模态框  开始-->
<div class="modal fade bs-example-modal-sm" id="myModal" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">注销</h4>
            </div>
            <div class="modal-body">
                <p>确认退出该系统吗？</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary">确认</button>
            </div>
        </div>
    </div>
</div>
<!--注销模态框  结束-->
 	 

</body>
<script src="js/jquery-2.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/common.js"></script>
<script src="js/echarts.min.js"></script>
<script src="js/echart.js"></script>
<script src="js/china.js"></script>
<script src="js/foundation-datepicker.js"></script>
<script src="js/foundation-datepicker.zh-CN.js"></script>
<script>
    $('#demo-1').fdatepicker();

    var nowTemp = new Date();
    var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0);
    var checkin = $('#dpd1').fdatepicker({
        onRender: function (date) {
            return date.valueOf() < now.valueOf() ? 'disabled' : '';
        }
    }).on('changeDate', function (ev) {
        if (ev.date.valueOf() > checkout.date.valueOf()) {
            var newDate = new Date(ev.date)
            newDate.setDate(newDate.getDate() + 1);
            checkout.update(newDate);
        }
        checkin.hide();
        $('#dpd2')[0].focus();
    }).data('datepicker');
    var checkout = $('#dpd2').fdatepicker({
        onRender: function (date) {
            return date.valueOf() <= checkin.date.valueOf() ? 'disabled' : '';
        }
    }).on('changeDate', function (ev) {
        checkout.hide();
    }).data('datepicker');
</script>
</html>